package com.geeguo.ebuilder.client.business.system.user.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class UserUpdateDTO {

    @NotBlank(message = "主键不能为空")
    @Schema(title = "主键")
    private String id;

    @NotBlank(message = "用户名不能为空")
    @Schema(title = "用户名")
    private String username;

    @NotBlank(message = "真实姓名不能为空")
    @Schema(title = "真实姓名")
    private String realName;

    @Schema(title = "性别")
    private Integer gender;

    @Schema(title = "移动电话")
    private String mobile;

    @Schema(title = "电子邮件")
    private String email;

    @NotNull(message = "所属组织不能为空")
    @Schema(title = "所属组织ID")
    private String orgId;

    @NotNull(message = "启用状态不能为空")
    @Schema(title = "启用状态")
    private Integer state;

    @Schema(title = "权限组")
    private List<String> roles;
}